package net

import (
	"github.com/cloudwego/hertz/pkg/app"
)

type IReqContext interface {
	Failed(c *ReqContext, code StatusCode, data interface{}, message string)
	Success(c *ReqContext, code StatusCode, data interface{}, message string)
}

type ReqContext struct {
	app.RequestContext
}

func (r *ReqContext) Failed(c *ReqContext, net StatusCode, data interface{}, message string) {
	//c.JSON()
}

func (r *ReqContext) Success(c *ReqContext, net StatusCode, data interface{}, message string) {
}

type LoginReq struct {
	GameID     int         `json:"game_id"`     // 游戏id
	PlatformID int         `json:"platform_id"` // 平台id
	LoginType  int         `json:"login_type"`  // 登录类型
	Data       interface{} `json:"data"`        // 登录数据
}
